Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing await for API request #27676

Merged
merged 1 commit into from
Aug 2, 2021
Merged

Add missing await for API request #27676

merged 1 commit into from
Aug 2, 2021

Conversation

jameshoward
Copy link
Contributor

getAllPostsWithSlug was missing an await on fetchAPI, resulting
in data?.allPosts always returning undefined. This meant SSG wasn't
aware of the paths it needed to generate.

`getAllPostsWithSlug` was missing an `await` on `fetchAPI`, resulting
in `data?.allPosts` always returning `undefined`. This meant SSG wasn't
aware of the paths it needed to generate.
@ijjk ijjk added the examples Issue/PR related to examples label Aug 2, 2021
@timneutkens
Copy link
Member

Thanks!

@kodiakhq kodiakhq bot merged commit 2cf58be into vercel:canary Aug 2, 2021
@jameshoward jameshoward deleted the patch-1 branch August 2, 2021 13:00
flybayer pushed a commit to blitz-js/next.js that referenced this pull request Aug 19, 2021
`getAllPostsWithSlug` was missing an `await` on `fetchAPI`, resulting
in `data?.allPosts` always returning `undefined`. This meant SSG wasn't
aware of the paths it needed to generate.
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants